\documentclass{article}
\usepackage{epsfig}
\usepackage{amsmath}
\pagestyle{empty}
\begin{document}
$ a_[i]^{m_[i] - 2} \mathrm{mod m_[i]} $
\pagebreak

\end{document}
